<html>
    <body>
<div id="footer">
By iktKnowledge.com
<br>
<script type="text/javascript">
    var day=new Date();
    var time=day.getHours();
    if(time<10){
        
        document.write("good morning");
    }
    else if(time>12 && time<18)
        {
            document.write("good afternoon");
        }
</script>
</div>
</body>
</html>
